﻿using AutoMapper;
using Factory.ProductionManagement.Procedure;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using Volo.Abp.Domain.Repositories;

namespace Factory.ProductionManagement.Procedures
{
    /// <summary>
    /// 操作步骤服务
    /// </summary>
    public class ProcedureAppService : ApplicationService, IProcedureAppService
    {
        /// <summary>
        /// 操作步骤仓储接口
        /// </summary>
        private readonly IRepository<Procedure,int> _procedurerepository;
        /// <summary>
        /// 映射接口
        /// </summary>
        private readonly IMapper _mapper;
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="procedurerepository">操作步骤仓储接口</param>
        /// <param name="mapper">映射接口</param>
        public ProcedureAppService(IRepository<Procedure, int> procedurerepository, IMapper mapper)
        {
            _procedurerepository = procedurerepository;
            _mapper = mapper;
        }
    }
}
